{extend name="main/index" /}
{block name="main"}

	
	<div class="content-page">
		<div class="row mt50" style ="margin-top:200px;margin-left:50px;">
			<div class="col-md-12">
				<p>
					给 <b>{$data.name}</b> 分配角色
				</p>
				
				<form action="{:url('admin/user/saverole')}"  method="post">
					<p style="width:600px">
						{volist name="list" id="v" mod="1"}
	                	{eq name="mod" value="0"}
							<input type="radio" name="rid"  value="{$v.id}" {if condition="$role.rid==$v.id"}checked{/if}>{$v.rolename} {$v.department}
						{/eq}
	               		{/volist}
					</p>
					<input type="hidden" name="uid" value="{$data.id}">
					<input type="submit" value="保存" class="btn btn-primary">
				</form>
			</div>
		</div>
	</div>


{/block}
